package pattern.visitor;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<Employee> employeeList = new ArrayList<Employee>();
        employeeList.add(new Engineer("工程师A"));
        employeeList.add(new Engineer("工程师B"));
        employeeList.add(new Pm("项目经理A"));
        employeeList.add(new Engineer("工程师C"));
        employeeList.add(new Engineer("工程师C"));
        employeeList.add(new Pm("项目经理B"));
        Report report = new Report(employeeList);
        System.out.println("====CEO====");
        report.showReport(new CeoVisitor());
        System.out.println("====CTO====");
        report.showReport(new CtoVisitor());
    }
}
